package service;

import java.util.ArrayList;

import dao.UserDao;
import entity.Movie;

public class UserService {
	private UserDao dao = new UserDao();
	
	public String login(String username,String password){
		return dao.login(username, password);
	}
	
	public String reg(String username,String password){
		return dao.reg(username, password);
	}
	
	public String find(String id){
		return dao.findPassword(id);
	}
	
	public ArrayList<Movie> findPurchase(String uid) {
		return dao.findPurchase(uid);
		
	}

}
